<%@ include file="../includes/topInclude.jsp" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c"      uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"    uri="http://java.sun.com/jsp/jstl/fmt" %>
<script type="text/javascript" src="js/contacts.js" ></script>
<!-- Support for Spring errors object -->
<%--spring:bind path="messageForm.*">
  <c:forEach var="error" items="${status.errorMessages}">
    <B><FONT color=RED>
      <BR><c:out value="${error}"/>
    </FONT></B>
  </c:forEach>
</spring:bind>
--%>
<div id="content">
    <div class="post">
        <div class="title">
            <h2>Message Form</h2>
            <p></p>
        </div>
        <div class="entry"> 
            <form:form name="messageFormHtml" commandName="messageForm" >
            <table>
                <tr>
                    <td>Individual Number</td>
                    <td><form:textarea path="individualNumbers" cols="30" rows="2"/></td>
                    <td><form:errors path="individualNumbers"  /></td>
                    
                </tr>
                
                <tr>
                    <td>Book Address</td>
                    <td><input type="text" value="" name="totalContactsSelected" readonly> Contacts Selected<form:hidden path="agendaNumbers" /> </td>
                    <td><small><a href="#" onclick="javascript:openMyAgenda(document.messageFormHtml.agendaNumbers.value)">Agenda</a></small></td>
                </tr>
                <tr>
                    <td>Text</td>
                    <td colspan="2"><form:textarea path="message.text" cols="50" rows="10"/></td>
                    <form:errors path="message.text"  />
                </tr>
                <tr>
                    <td colspan="3" align="right"><input type="submit" value="send"></td>
                </tr>
            </table>
        </div>
    </div>
</div>
</form:form>

<%@ include file="../includes/bottomInclude.jsp" %>